package com.aruba.ffmpegsyncapplication;

import android.os.Bundle;
import android.view.View;

import androidx.appcompat.app.AppCompatActivity;

public class MainActivity extends AppCompatActivity {
    private FFmpegPlayView sv_video;
    
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);

        sv_video = findViewById(R.id.sv_video);
    }

    public void play(View view) {
        sv_video.play("http://ivi.bupt.edu.cn/hls/jstv.m3u8");
    }

    public void stop(View view) {
        sv_video.stop();
    }
    
}
